import  {businessUrl} from "../config/env";
import request from "../config/axios";

//调取拼团接口
//api/yxStoreProduct?page=0&size=10&sort=id%2Cdesc&isShow=1&isDel=0&isIntegral=0
//https://app2.yixiang.co/api/yxStoreProduct/info/37
//http://47.100.203.148:8000/api/yxStoreCombination?page=0&size=10&sort=id%2Cdesc&value=%E5%A4%9A&type=title&title=%E5%A4%9A
//http://47.100.203.148:8000/api/yxStoreSeckill?page=0&size=10&sort=id%2Cdesc
export const gorupbooking=()=>request({
    url:`${businessUrl}api/yxStoreSeckill?page=0&size=10&sort=id%2Cdesc`,
    method:'GET',
})
export const selecltgoods=()=>request({
    url:`${businessUrl}api/yxStoreProduct?page=0&size=10&sort=id%2Cdesc&isShow=1&isDel=0&isIntegral=0`,
    method:'GET',
})
export const  selecltimg=()=>request({
    url:`${businessUrl}api/yxStoreProduct/info/37`,
    method:'GET'
})

export const searchGroup=(data)=>request({
    url:`${businessUrl}api/yxStoreSeckill?page=0&size=10&sort=id%2Cdesc${data}`,
    method:'GET'
})